package com.tuanbiao.controllers;

import com.hzjq.data.entity.PmEntity;
import com.tuanbiao.base.mvp.IModel;
import com.tuanbiao.base.mvp.IPresenter;
import com.tuanbiao.base.mvp.IView;
import com.tuanbiao.models.action.BleBusAction;
import com.tuanbiao.models.action.LocationAction;
import com.tuanbiao.models.action.ProjectAction;

import java.util.List;

/**
 * @author abiao
 * @since 2022/3/25 11:56
 */
public interface ProjectController {
    interface Model extends IModel, ProjectAction, LocationAction, BleBusAction {

    }

    interface AddView extends IView {
        void showDetails(PmEntity entity);

        void showDetails(String companyCode, boolean isBusiness);

        void onResultSuccess();
    }

    interface AddPresenter extends IPresenter {
        void commit(PmEntity entity);
    }

    interface View extends IView {

        void setProjects(List<PmEntity> entities);

        void addProjects(List<PmEntity> entities);
    }

    interface Presenter extends IPresenter {
        void refresh();

        void loadMore();

        void updateProject(PmEntity entity);

        void importProject(String path);

        void deleteProject(PmEntity entity);
    }
}
